package router

import (
	"github.com/gin-gonic/gin"
	"work-chess/router/api"
)

func Router() {
	r := gin.Default()
	r.POST("/user/register", api.Register())
	r.GET("/user/register/verify", api.EmailVerify())
	r.GET("/ws", api.ChessConn())

	r.Run(":8081")
}
